//
//  UsLogoViewTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/1.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "UsLogoViewTableViewCell.h"

@implementation UsLogoViewTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWImageView * logoImageView = [[GLGWImageView alloc] initWithImageName:@"ff" inSuperView:self.contentView];
        [logoImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self.contentView);
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(38));
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(59)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(59)));
        }];
        logoImageView.backgroundColor = kRandomColor;
        //
        GLGWLabel * usLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.contentView];
        usLabel.text = @"钢来钢往  V1.0";
        [usLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(logoImageView);
            make.top.equalTo(logoImageView.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
